package com.gong.DesignPattern.MementoPattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/7/2 0002 8:49
 */
public class Document {
    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void change(String code){
        this.code = code;
    }

    public Beifen save(){
        return new Beifen(code);
    }

    public void resume(Beifen beifen){
        code = beifen.getCode();
    }

}
